import { get, post } from '../../utils/request'
import { UserInfo } from './type';
export const getList = (params: any): Promise<any> => {

    return get("userinfo/list", params);
}
export const deleteAll = (ids: number[]) => {

    return post("userinfo/deleteall", { ids });
}
export const del = (id: number) => {

    return get("userinfo/delete", { id });
}
export const add = (data: UserInfo) => {

    return post("userinfo/add", data);
}

export const getUserTypeList = (): Promise<any> => {

    return get("userinfotype/list", { psize: 100 });
}
export const updateState = (ids: number[], state: number) => {

  
    
    return post("userinfo/updatestate", {
        ids,
        state
    });
}

